package com.ynet.middleground.user.bean;

import javax.validation.constraints.NotNull;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 查询基础对象，如果仅根据 id 查询，可使用该请求类，无需创建其他查询请求类
 * @date 2020-07-01 19:40
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "查询基础对象", description = "查询基础对象")
public class QueryBaseReq extends BaseReqObj {

    private static final long serialVersionUID = -9085128277394055174L;

    /**
     * id
     */
    @ApiModelProperty(value = "id", notes = "id", dataType = "Integer", required = true)
    @NotNull(message = "id 不能为空")
    private Integer id;

}
